package com.usefullc.crawler.enums;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 请求处理方式
 */
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum HandlerTypeEnum {

    SELENIUM("selenium", "selenium"),
    ELECTRON("electron", "electron"),
    HTML_UNIT("htmlUnit", "htmlUnit"),
    HTTP_CLIENT("httpClient", "httpClient"),
    ;
    private String code;
    private String value;

    HandlerTypeEnum(String code, String value) {
        this.code = code;
        this.value = value;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}
